package com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pojo.dto.DeleteCartDto;
import com.pojo.dto.OrderGoodsDto;
import com.pojo.entity.Cart;
import com.pojo.vo.CartVo;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author : 杨世博
 * @date: Created in 15:32 2023/6/3
 */
public interface ICartService extends IService<Cart> {

    List<CartVo> getCartList(Long uid);

    void addCart(Long uid, Integer goodsId, Integer cartNum);

    List<CartVo> updateGoodsNum(Long uid, Integer goodsId, Integer cartNum);

    List<CartVo> deleteGoodsNum(Long uid, Integer goodsId);

    List<CartVo> deleteGoods(OrderGoodsDto orderGoodsDto);
}
